package com.atguigu07.object.equals.apply;

/**
 * ClassName: CustomerTest
 * Package: com.atguigu07.object.equals.apply
 * Description:
 *  说明：判断两个Customer对象是否equals()，除了Customer类需要重写equals()之外，其内部的类类型的属性所在的类，也需要重写equals()
 * @Author 姜
 * @Create 2023/11/22 16:52
 * @Version 1.0
 */
public class CustomerTest {
    public static void main(String[] args) {
        Customer c1 = new Customer("法师", 25, new Account(8888));
        Customer c2 = new Customer("法师", 25, new Account(8888));
        System.out.println(c1.equals(c2));
    }
}
